package com.shopping.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.shopping.model.Commodity;
import com.shopping.param.CommodityParam;
import com.shopping.response.CommodityResp;

public interface CommodityMapper {
    int deleteByPrimaryKey(Integer commid);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    CommodityResp selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);
    
    List<CommodityResp> select(CommodityParam param);

	public int count(@Param(value = "delflag") String delflag);
	
	List<CommodityResp> selectById(@Param("ids")String [] ids);
}